home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- _root.Tommy._x += (_root._xmouse - _root.Tommy._x) / 4;
- _root.Tommy._y += (_root._ymouse - _root.Tommy._y) / 4;
- if(_root._xmouse < _root.Tommy._x - 20)
- {
- _root.Tommy.nextFrame();
- }
- else if(_root.Tommy._x + 20 < _root._xmouse)
- {
- _root.Tommy.prevFrame();
- }
- if(490 < _root.Tommy._x)
- {
- setProperty(this, _X, 490);
- }
- if(_root.Tommy._x < 10)
- {
- setProperty(this, _X, 10);
- }
- if(385 < _root.Tommy._y)
- {
- setProperty(this, _Y, 385);
- }
- if(_root.Tommy._y < 10)
- {
- setProperty(this, _Y, 10);
- }
- }
-